<template>
  <view
    class="m-container"
    :class="{
      gray: top > 0
    }"
    :style="{
      'padding-top': top + 'px',
    }"
  >
    <slot></slot>
  </view>
</template>

<script>
export default {
  props: {
    top: {
      type: Number,
      default: 0,
    },

    theme: {
      type: String,
      default: 'gray'
    }
  },
};
</script>

<style lang="scss" scoped>
.m-container {
	min-height: 600rpx;
  padding-bottom: 60rpx;
  
}

// .white {
//   background-color: #ffffff;
//   background-image: url("https://test.tuzikp.com/upload/null/20231114210713_54163.png");
//   background-size: 100% 564rpx;
//   background-repeat: no-repeat;
// }

.gray{
  background-color: #FAFBFD;
  background-image: linear-gradient(180deg, #D4D3F2 0%, #FAFBFD 100%);
  background-size: 100% 564rpx;
  background-repeat: no-repeat;
}

</style>